<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">

let obj = {
	p: [
		"hello",
		{
			y: "world"
		}
	]
};

let {
	p: [
		x,
		{
			y
		}
	]
} = obj;

console.error("x = " + x);
console.error("y = " + y);
	
</script>

</body>
</html>